import 'package:flutter/material.dart';
import 'package:flutter_demo/store/store.dart';
import 'package:provide/provide.dart';
import 'App.dart';

void main() {
  // Initialize the model. Can be done outside a widget, like here.
  var store = Store();

  // Set up a Providers instance.
  // store 注入 wedget
  var providers = Providers();
  providers.provide(Provider<Store>.value(store));
  runApp(
    ProviderNode(
      providers: providers,
      child: App(),
    ),
  );
}
